package cn.zyjblogs.server.user.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

/**
 * Copyright (C), 2021, 北京同创永益科技发展有限公司
 *
 * @author zhuyijun
 * @version 3.0.0
 * @description
 * @date 2022/8/19 16:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Role implements GrantedAuthority {
    private String id;
    private String name;
    @Override
    public String getAuthority() {
        return name;
    }
}
